package dao;

import java.util.ArrayList;
import java.util.List;

import model.Mellemvare;

public class Dao{
	private static Dao uniqueInstance;
	private static List<Mellemvare> mellemvarer = new ArrayList<Mellemvare>();
	
	public static Dao getInstance(){
		if (uniqueInstance == null){
			uniqueInstance = new Dao();
		}
		return uniqueInstance;
	}
	
	public static void store(Mellemvare m){
		mellemvarer.add(m);
	}
	
	public static void delete(Mellemvare m){
		mellemvarer.remove(m);
	}
	
	/*public static List<Mellemvare> getAlleMellemvarer(){
		return new ArrayList<Mellemvare>(mellemvarer);
	}*/
}